package gui;

import javax.swing.JPanel;
import javax.swing.JLabel;

import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JEditorPane;
import javax.swing.JTextField;
import javax.swing.JButton;

public class Withdraw extends JPanel {
	private JTextField textField;

	private JButton btnContinue;
	private JButton btnBack;
	private JEditorPane currentBalance;
	private JTextField withdrawAmount;

	/**
	 * Create the panel.
	 */
	public Withdraw() {
		setLayout(null);

		JLabel lblWithdraw = new JLabel("Withdraw");
		lblWithdraw.setBounds(193, 32, 64, 16);
		lblWithdraw.setFont(new Font("Tahoma", Font.BOLD, 13));
		add(lblWithdraw);

		JLabel lblCurrentBalance = new JLabel("Current balance: ");
		lblCurrentBalance.setBounds(57, 100, 107, 16);
		add(lblCurrentBalance);

		JLabel lblWithdrawAmount = new JLabel("Withdraw amount: ");
		lblWithdrawAmount.setBounds(57, 152, 118, 16);
		add(lblWithdrawAmount);

		currentBalance = new JEditorPane();
		currentBalance.setBounds(180, 100, 106, 20);
		add(currentBalance);

		withdrawAmount = new JTextField();
		withdrawAmount.setBounds(180, 149, 106, 20);
		add(withdrawAmount);
		withdrawAmount.setColumns(10);

		btnBack = new JButton("Back");
		btnBack.setBounds(57, 220, 89, 23);
		add(btnBack);

		btnContinue = new JButton("Continue");
		btnContinue.setBounds(320, 220, 89, 23);
		add(btnContinue);

	}

	public void addActionListener(ActionListener l) {
		btnContinue.addActionListener(l);
		btnBack.addActionListener(l);

	}

	public JTextField getTextField() {
		return textField;
	}

	public JButton getBtnContinue() {
		return btnContinue;
	}

	public JButton getBtnBack() {
		return btnBack;
	}

	public JEditorPane getCurrentBalance() {
		return currentBalance;
	}

	public JTextField getWithdrawAmount() {
		return withdrawAmount;
	}

}
